package com.woniuxy.third.enums;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

//@JsonFormat(
//        shape = JsonFormat.Shape.OBJECT
//)
public enum CourseLiveEnum {
    LIVE(0, "Live"),
    RECORD(1, "Record");

    private int code;
    private String desc;

    private CourseLiveEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return this.code;
    }

    public String getDesc() {
        return this.desc;
    }
}